<template>
  <div class="root">
    <!-- <div>{{sampleGraph}}</div> -->
    <img  :src="sampleGraph" />
    <div class="verbal-content">
      <div class="title vertical-center">名称：{{ title }}</div>
      <div class="author-create-time">
        <div class="author vertical-center">作者：{{ author }}</div>
        <div class="create-time vertical-center">发布日期：{{ createTime }}</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "ProductionList",
  // props: ["title", "author", "createTime",'sampleGraph'],
  props: ["title", "author", "createTime"],
  data() {
    return {
      // sampleGraph: require("../../../assets/sample-graph/sample_graph.jpg")
      sampleGraph: require("@/assets/sample-graph/sample-graph.jpg")
    };
  }
};
</script>

<style scoped>
.root {
  float: left;
  width: 100%;
  padding: 10px;
}
img {
  width: 150px;
  height: 100px;
  float: left;
}
.verbal-content {
  width: 80%;
  float: left;
  padding-left: 10px;
  font-size: 20px;
  color: #101010;
}
.title {
  height: 50px;
}
.author-create-time {
  height: 50px;
  float: left;
  width: 100%;
}

.author {
  width: 50%;
  float: left;
}

.creat-time {
  width: 50%;
  float: left;
}

/* 垂直居中 */
.vertical-center{
  display: flex;
  justify-items: center;
}
</style>